<div id="body-wrapper"> <!-- Wrapper for the radial gradient background -->
		
		<?php require 'sidebar.php';?>
		
		<div id="main-content"> <!-- Main Content Section with everything -->
			
			<noscript> <!-- Show a notification if the user has disabled javascript -->
				<div class="notification error png_bg">
					<div>
						系统检测Javascript禁用了，您需要取消禁用，或升级浏览器。
					</div>
				</div>
			</noscript>
			
			<div class="clear"></div> <!-- End .clear -->
			
			<div class="content-box"><!-- Start Content Box -->
				
				<div class="content-box-header">
					
					<h3>列表</h3>
					
					<ul class="content-box-tabs">
						<li><a href="#tab1" class="default-tab">管理员列表</a></li> <!-- href must be unique and match the id of target div -->						
					</ul>
					
					<div class="clear"></div>
					
				</div> <!-- End .content-box-header -->
				
				<div class="content-box-content">
					
					<div class="tab-content default-tab" id="tab1"> <!-- This is the target div. id must match the href of this div's tab -->
						
						<div class="notification attention png_bg">
							<a href="#" class="close"><img src="/resources/images/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
							<div>
								请注意定时更改管理员密码
							</div>
						</div>
						
						<table>
							
							<thead>
								<tr>
								   <th><input class="check-all" type="checkbox" /></th>
								   <th>用户名</th>
								   <th>上次登录IP</th>
								   <th>上次登录时间</th>								  
								   <th>管理</th>
								</tr>
								
							</thead>
						 
							<tfoot>
								<tr>
									<td colspan="5">
										<div class="bulk-actions align-left">
											<select name="dropdown" id="batch_select">
												<option value="option1">选择一个操作...</option>												
												<option value="delete">删除</option>
											</select>
											<a class="button" href="javascript:void(0)" id="batch_do">应用操作</a>
										</div>
										<div class="pagination">
										<?php echo $pageinfo?>
										</div>
										<!-- 
										 <div class="pagination">
											<a href="#" title="First Page">&laquo; First</a><a href="#" title="Previous Page">&laquo; Previous</a>
											<a href="#" class="number" title="1">1</a>
											<a href="#" class="number" title="2">2</a>
											<a href="#" class="number current" title="3">3</a>
											<a href="#" class="number" title="4">4</a>
											<a href="#" title="Next Page">Next &raquo;</a><a href="#" title="Last Page">Last &raquo;</a>
										</div>--> <!-- End .pagination -->
										
										<div class="clear"></div>
									</td>
								</tr>
							</tfoot>
						 
							<tbody>
							
							<?php foreach ($admins as $a){?>
								<tr id="tr_<?php echo $a->id?>">
									<td><input type="checkbox" name="chk" id="chk_<?php echo $a->id?>" value="<?php echo $a->id?>" /></td>
									<td><?php echo $a->username?></td>
									<td><?php echo $a->lastloginip?></td>
									<td><?php echo $a->lastlogintime?></td>									
									<td>
										<!-- Icons -->
										 <a href="/sysadmin/admins/add/<?php echo $a->id?>" title="编辑"><img src="/resources/images/icons/pencil.png" alt="Edit" /></a>
										 <a href="#" title="删除" onclick="if(del('<?php echo $a->id?>')){return true;}else{return false;}"><img src="/resources/images/icons/cross.png" alt="Delete" /></a> 										 									</td>
								</tr>
							<?php }?>
								
							</tbody>
							
						</table>
						
					</div> <!-- End #tab1 -->
					
					       
					
				</div> <!-- End .content-box-content -->
				
			</div> <!-- End .content-box -->
			
			<div class="content-box column-left">
				
				<div class="content-box-header">
					
					<h3>功能介绍</h3>
					
				</div> <!-- End .content-box-header -->
				
				<div class="content-box-content">
					
					<div class="tab-content default-tab">
					
						<h4>管理员列表</h4>
						<p>
						通过分配管理员，进行网站管理
						</p>
						
					</div> <!-- End #tab3 -->        
					
				</div> <!-- End .content-box-content -->
				
			</div> <!-- End .content-box -->
			
			<div class="clear"></div>
			
			
			
			<?php require_once 'copy.php';?>
			
		</div> <!-- End #main-content -->
		
	</div>